package cn.dhnep.demo.mapper;

import cn.dhnep.demo.pojo.PackageOrderItem;
import cn.dhnep.demo.pojo.frontvo.OrderItemVo;
import cn.dhnep.demo.pojo.frontvo.PackageOrderItemVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dhn
 * @since 2021-09-06
 */
public interface PackageOrderItemMapper extends BaseMapper<PackageOrderItem> {

    /**
     * 骑手昨天的出货记录
     */
    List<PackageOrderItemVo> horsemanEvenDayPackageOrder();

    /**
     * 骑手昨日的交货总数
     */
    Integer getAllCountByHorseName(String name);

    /**
     * 骑手昨日的交货订单详情
     */
    List<OrderItemVo> getYesterdayPackerOrder(String name);
}
